package com.wish.building.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wish.building.entity.TbPremisesInfo;
import com.wish.building.mapper.TbPremisesInfoMapper;
import com.wish.building.service.ITbPremisesInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 楼盘信息表 服务实现类
 * </p>
 *
 * @author 高锦涛
 * @since 2022-03-23
 */
@Service
public class TbPremisesInfoServiceImpl extends ServiceImpl<TbPremisesInfoMapper, TbPremisesInfo> implements ITbPremisesInfoService {

    @Override
    public IPage<TbPremisesInfo> pageTbPremisesInfo(TbPremisesInfo tbPremisesInfo, Integer pageNum, Integer pageSize) {
        IPage<TbPremisesInfo> page1 = new Page<>(pageNum,pageSize);
        IPage<TbPremisesInfo> pg =getBaseMapper().pageTbPremisesInfo(page1,tbPremisesInfo);
        return pg;
    }
}
